import moment from "moment";
const ProductListSearchKeys = [
    {
        key: "cnName",
        label: "库位编码",
        placeholder: "请输入库位编码",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "spuCode",
        label: "SPU编码",
        placeholder: "请输入SPU编码",
        input: true,
        rules: [{
            required: false
        }],
    },
    {
        key: "status",
        label: "上架状态",
        placeholder: "请选择上架状态",
        select: true,
        rules: [{
            required: false
        }],
    }, 
]
const ProductListColumn =[
    { title: '库存编码', width:50, align: 'center', dataIndex:'id' }, 
    { title: '订单号', width:110, align: 'center', dataIndex: 'orderNo' }, 
    { title: '状态', width:120, align: 'center', dataIndex: 'status' }, 
    {   
        title: '更新时间', 
        width:100, 
        align: 'center', 
        dataIndex:'updateTime',
        customRender:text =>{return moment(text).format('YYYY-MM-DD hh:mm:ss')} 
    }
]
const ProductListModalKeys = [
    {
        key: "lineNumber",
        label: "列数量",
        placeholder: "列数量",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '列数量'
        }],
    },
    {
        key: "rowNumber",
        label: "行数量",
        placeholder: "行数量",
        input: true,
        maxLength: 50,
        rules: [{
            required: true,
            message: '行数量'
        }],
    },
    {
        key: "isOpenMerge",
        label: "是否单件归集",
        switcher: true,
        rules: [{
            required: true,
            message: '是否单件归集'
        }],
    }
]


export {
    ProductListSearchKeys, ProductListColumn, ProductListModalKeys,
}